package com.iafme.dto.req;

import com.systemframework.valid.NotBlankThenPattern;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author summer
 * @version 1.0
 * @date 2025/3/1 17:55
 */
@Data
public class WebMemberReqDTO implements Serializable {

    @NotBlankThenPattern(regexp = "^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$",message = "邮箱格式错误")
    private  String email;

    @NotBlank(message = "账号密码不能为空")
    private String password;

    @NotBlank(message = "确认密码不能为空")
    private String confirmPsd;

    @NotBlank(message = "验证码不能为空")
    private String code;
}
